package com.happyrecyclingstation.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * JWT 属性
 */
@Data
@Component
@ConfigurationProperties(prefix = "happy-recycling-station.jwt")
public class JwtProperties {
    // 管理员
    private String adminSecretKey;
    private String adminToken;
    private long adminExpiration;

    // 求职者
    private String jobSeekerSecretKey;
    private String jobSeekerToken;
    private long jobSeekerExpiration;

    // HR
    private String hrSecretKey;
    private String hrToken;
    private long hrExpiration;
}
